<?php
	$this->addScript($this->Html->css('datepicker'));
	$this->addScript($this->Html->script('date'));
	$this->addScript($this->Html->script('datepicker'));

	$this->addScript($this->Javascript->codeBlock('
		$(document).ready(function() {

			$(".date-picker").val((new Date()).asString());

			$(".date-picker").datePicker({
						clickInput	: true,
						startDate	: (new Date()).asString(),
						endDate		: "2060/01/01"
					}
			);
		});
	'));
?>
<div class="usuarios form">
<?php echo $this->Form->create('Ayudantia');?>
	<fieldset>
 		<legend><?php __('Admin || Editar ayudantia'); ?></legend>

		<div class="campo"><?= $this->Form->input('id'); ?></div>
		<div class="campo"><?= $this->Form->input('usuario_id');?></div>
		<div class="campo"><?= $this->Form->input('ayudante_id');?></div>
		<div class="campo"><?= $this->Form->input('coordinador');?></div>
		<div class="campo"><?= $this->Form->input('asignatura_id');?></div>
		<div class="campo"><?= $this->Form->input('pack_id');?></div>
		<div class="campo"><?= $this->Form->input('materia');?></div>
		<div class="campo"><?= $this->Form->input('modalidad');?></div>
		<div class="campo"><?= $this->Form->input('numero_horas');?></div>
		<div class="campo"><?= $this->Form->input('numero_alumnos');?></div>
		<div class="campo"><?=$this->Form->input('fecha', array('type'=>'text','div'=>false,'class' => 'date-picker'))?></div>
		<div class="campo"><?= $this->Form->input('hora');?></div>
		<div class="campo"><?= $this->Form->input('direccion');?></div>
		<div class="campo"><?= $this->Form->input('comuna_id');?></div>
		<div class="campo"><?= $this->Form->input('observacion');?></div>
		<div class="campo"><?= $this->Form->input('precio');?></div>
		<div class="campo"><?= $this->Form->input('estado');?></div>
		<div class="campo"><?= $this->Form->input('nota');?></div>
		<div class="campo"><?= $this->Form->input('Resumene');?></div>
	</fieldset>
<?php echo $this->Form->end(__('Editar', true));?>
</div>